FactoryGirl.define do
	factory :user do
	    sequence(:name)  { |n| "Person #{n}" }
	    sequence(:email) { |n| "person_#{n}@example.com"}
	    password "foobar"
	    password_confirmation "foobar"
	    factory :admin do
	    	admin true
	    end
	end

	factory :micropost do
		content "Lorem ipsum"
		user
	end

	#factory :user do
	#	name     "Michael Hartl"
	#	email    "michael@example.com"
	#	password "foobar"
	#	password_confirmation "foobar"
	#end 
=begin
	factory :user do
		name		"test"
		email		"test@test.com"
		password    "111111"
		password_confirmation "111111"
	end
=end
end